class CreateUserPhotoPictures < ActiveRecord::Migration
  def self.up
    create_table :user_photo_pictures do |t|
      t.integer   :user_photo_id,   :null => false
      t.integer   :user_id,   :null => false
      t.integer   :status,    :limit => 1,  :default => 0
      t.integer   :flag,    :limit => 4
    end
  end

  def self.down
    drop_table  :user_photo_pictures
  end
end
